package com.springstart;

public class Dog implements Pet {

	private String name;
	
	public Dog() {}
	
	public Dog(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void bark() {
		System.out.println(this.getClass());
	}
	
	

}
